<link href="/css/home/warehouse.css" media="screen" rel="stylesheet" type="text/css" >
<style type="text/css">
    .datatable {
            width:1020px;
            text-align: left;
            font-size: 12px;
            font-family: verdana;
            background: #c0c0c0;
    }

    .datatable thead tr,

    .datatable tfoot tr {
            background: #c0c0c0;
    }

    .datatable tbody tr {
            background: #f0f0f0;
            height: 16px;
    }

    .datatable td, .datatable th {
            border: 1px solid white; height:28px;
    }
    .datatable td {background-color:white;}

    .datatable .hover td {background-color:#99CCFF;}

    .datatable .select td {background-color:#EEEE99;}
    
    table{border-collapse:collapse;}
</style>
<table  class="datatable" width="1020px" border="0" cellpadding="0" cellspacing="0" style="margin-left: auto;margin-right: auto;" id="table">                                               
    <tr align="center">
        <td style="width:100px;background-color:#555555;height:36px;"><font color="#FFFFFF">时间</font></td>
        <td style="width:100px;background-color:#555555;height:36px;"><font color="#FFFFFF">变化前金额</font></td>
        <td style="width:100px;background-color:#666666;"><font color="#FFFFFF">类型</font></td>
        <td style="width:80px;background-color:#555555;"><font color="#FFFFFF">金额</font></td>
        <td style="width:100px;background-color:#666666;"><font color="#FFFFFF">变化后金额</font></td>
        <td style="width:370px;background-color:#555555;"><font color="#FFFFFF">说明</font></td>
    </tr>
    <?php if($this->Accountlist)
    {
        foreach ($this->Accountlist as $Item) {?>
            <tr align="center">
                <td style="background-color:#C4C4C4;height:36px;"><?php echo $Item->dateCreated;?></td>
                <td style="background-color:#C4C4C4;height:36px;"><?php echo $Item->beforeMoney;?></td>
                <td style="background-color:#E5E5E5;"><?php echo $Item->typename;?></td>
                <td style="background-color:#C4C4C4;"><?php echo round(($Item->afterMoney-$Item->beforeMoney),2);?></td>
                <td style="background-color:#E5E5E5;"><?php echo $Item->afterMoney;?></td>
                <td align="left" style="background-color:#C4C4C4;">&nbsp;&nbsp;<a href="/admini/manageuser/account/username/<?php echo $Item->username; ?>" style="color:#00f;" target="_blank"><?php echo strlen($Item->comment)>=20?mb_substr($Item->comment,0,20, 'utf-8').'...':$Item->comment;?></a></td>
            </tr>
        <?php                 
        }                
    }?>
    <tr>
        <td colspan="6" align="right">
        <div class="toolbar" style="height: 35px;padding-top: 0px;">
            <?php echo $this->partial('paging.phtml', array("pages" => $this->Accounts)); ?>
        </div>
        </td>
    </tr>
</table>
